﻿using System.Data.Entity;

namespace Jet.Dal.EF.Implementation.Contexts
{	/// <summary>
	/// Context for 8 types of entities 
	/// </summary>
	internal class DbContext8<TEntity1, TEntity2, TEntity3, TEntity4, TEntity5, TEntity6, TEntity7, TEntity8> : DbContext7<TEntity1, TEntity2, TEntity3, TEntity4, TEntity5, TEntity6, TEntity7>
		where TEntity1 : class
		where TEntity2 : class
		where TEntity3 : class
		where TEntity4 : class
		where TEntity5 : class
		where TEntity6 : class
		where TEntity7 : class
		where TEntity8 : class
	{
#pragma warning disable 0169
		// ReSharper disable UnusedMember.Local
		protected DbSet<TEntity8> DbSet8 { get; set; }
		// ReSharper restore UnusedMember.Local
#pragma warning restore 0169

		public DbContext8(string connectionString, bool lazyLoadingAllowed, bool allowProxyCreation)
			: base(connectionString, lazyLoadingAllowed, allowProxyCreation)
		{

		}

		static DbContext8()
		{
			Database.SetInitializer<DbContext8<TEntity1, TEntity2, TEntity3, TEntity4, TEntity5,
				TEntity6, TEntity7, TEntity8>>(null);
		}	
	}
}
